package com.xdm.ds.adapter.file;

import com.xdm.ds.XmDataSourceFactory;
import com.xdm.ds.XmItem;

/**
 * The factory for File adapters of Data storage
 * 
 * @author Alexander Lapygin
 */
public class FileFactory implements XmDataSourceFactory {
	static private XmDataSourceFactory instance;
	
	private FileFactory() {
	}

	public static XmDataSourceFactory getInstanse() {
		if(instance == null) {
			instance = new FileFactory();
		}
		return instance;
	}

	/* 
	 * TODO No real file dependency
	 */
	public XmItem newItem(String path) {
		return new FileItem(path);
	}
}
